<!DOCTYPE html>
<html>
<head>
    <title>生成器测试表</title>
		<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
			<#if shiro.hasPermission("busi:generatordemo:save")>
            <a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
			</#if>
			<#if shiro.hasPermission("busi:generatordemo:update")>
            <a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>
			</#if>
			<#if shiro.hasPermission("busi:generatordemo:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			</#if>
        </div>
        <table id="jqGrid"></table>
        <div id="jqGridPager"></div>
    </div>

    <div v-show="!showList" class="panel panel-default">
        <div class="panel-heading">{{title}}</div>
        <form class="form-horizontal">
														                    <div class="form-group">
                        <div class="col-sm-2 control-label">一级指标</div>
                        <div class="col-sm-10">
                            <select name=""  class="form-control" v-model="generatordemo.oneZb" placeholder="一级指标" @change="updatesec">
                                <!--<option value="0">一级指标1</option>-->
                                <!--onezblist 格式为 [{onezb:"一级指标1"}，{onezb:"一级指标2"}，{onezb:"一级指标3"}]-->
                                <option v-for="item in zbAll" :value="item.onezb">{{item.onezb}}</option>
                            </select>
                            <!--<input type="text" name="oneZb" id="oneZb" class="form-control" v-model="generatordemo.oneZb" placeholder="一级指标"/>-->
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">二级指标</div>
                        <div class="col-sm-10">
                            <!--<input type="text" name="secZb" id="secZb" class="form-control" v-model="generatordemo.secZb" placeholder="二级指标"/>-->
                            <!--二级指标-->
                            <select name="" id="s2" class="form-control" v-model="generatordemo.secZb" placeholder="二级指标">
                                <option value="0">二级指标</option>
                                <option v-for="item in seczblist" :value="item.seczb">{{item.seczb}}</option>
                            </select>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">解释</div>
                        <div class="col-sm-10">
                            <input type="text" name="js" id="js" class="form-control" v-model="generatordemo.js" placeholder="解释"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">部门id</div>
                        <div class="col-sm-10">
                            <input type="text" name="deptId" id="deptId" class="form-control" v-model="generatordemo.deptId" placeholder="部门id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">用户id</div>
                        <div class="col-sm-10">
                            <input type="text" name="userId" id="userId" class="form-control" v-model="generatordemo.userId" placeholder="用户id"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">国家标准</div>
                        <div class="col-sm-10">
                            <input type="text" name="nationalStandards" id="nationalStandards" class="form-control" v-model="generatordemo.nationalStandards" placeholder="国家标准"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">计算依据</div>
                        <div class="col-sm-10">
                            <input type="text" name="calcuBasis" id="calcuBasis" class="form-control" v-model="generatordemo.calcuBasis" placeholder="计算依据"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">创建时间</div>
                        <div class="col-sm-10">
                            <input type="text" name="createTime" id="createTime" class="form-control" v-model="generatordemo.createTime" placeholder="创建时间"/>
                        </div>
                    </div>
											                    <div class="form-group">
                        <div class="col-sm-2 control-label">原始数据文件</div>
                        <div class="col-sm-10">
                            <input type="file" name="file" id="form_file" class="form-control"  placeholder="原始数据文件"/>
                        </div>
                    </div>
                    <div class="form-group">
                        <div class="col-sm-2 control-label">原始数据文件</div>
                        <div class="col-sm-10">
                            <input type="text" name="oriDataFile" id="oriDataFile" class="form-control" v-model="generatordemo.oriDataFile" placeholder="文件上传路径"/>
                        </div>
                    </div>
							            <div class="form-group">
                <div class="col-sm-2 control-label"></div>
                <input type="button" class="btn btn-primary" id="btnSaveOrUpdate" data-loading-text="保存中..." @click="saveOrUpdate" value="确定"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
                &nbsp;&nbsp;<input type="button" class="btn btn-primary" id="validateBtn" value="手动验证"></input>
                &nbsp;&nbsp;<input type="button" class="btn btn-primary" id="resetBtn" value="重置"></input>
            </div>
        </form>
    </div>
</div>

<script src="${request.contextPath}/statics/libs/bootstrapValidator.min.js"></script>
<script src="${request.contextPath}/statics/libs/zh_CN.js"></script>
<script src="${request.contextPath}/statics/libs/fileinput.min.js"></script>
<script src="${request.contextPath}/statics/libs/zh.js"></script>
<script src="${request.contextPath}/statics/js/modules/busi/generatordemo.js?_${.now?long}"></script>
</body>
</html>